<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class FakeDetail extends Model
{
    use HasFactory;
    protected $table = 'fake_detail';

    protected $casts = [
        'extra_data' => 'array',  // 将 extra_data 转换为数组
    ];

    public function fakelist()
    {
        return $this->belongsTo(FakeList::class, 'f_id', 'id');
    }


}
